﻿@{
    
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<!DOCTYPE html>
<html>
<head>
    <title>ShowAddTask</title>
</head>
<body>
    <form action="/NetBee/AddTask" accept-charset="utf-8" method="post">
    <div>
        <span>任务名:</span><span><input type="text" size="320" name="Name" value="@ViewBag.NewTask.Name" /></span><span><input type="submit" value="保存" /></span>
    </div>
    </form>
    <div id="container">
    @{
        foreach(var task in ViewBag.Tasks)
        {
            <div><span>任务名:</span><span>@task.Name</span></div>
        }
     }
    </div>
</body>
</html>
